package com.itheima.myshopweb.client;

import com.itheima.myshopuser.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @File: UserClient
 * @Brief: 调用方代理接口，使用代理模式处理调用接口
 * @Details:
 * @Author: Kevin
 * @Date: 2024/10/28 21:29
 * @Version: 1.0
 * @Department: 人工智能与仿真实验室
 * @Copyright: Copyright By AI&Simulation Lab, All Rights Reserved
 */
@FeignClient(value = "myshop-user", fallback = UserClientImpl.class)
public interface UserClient {
    @RequestMapping(value = "user/{id}", method = RequestMethod.GET)
    public User findById(@PathVariable(value = "id") Integer id);
}